﻿using WeDonekRpc.Helper.Validate;

namespace Basic.FlowRemoteModel.FlowNode.Model
{
    public class FlowNodeAdd
    {
        /// <summary>
        /// 流程ID
        /// </summary>
        [NumValidate("flow.id.error", 1)]
        public long FlowId
        {
            get;
            set;
        }
        /// <summary>
        /// 节点名称
        /// </summary>
        [NullValidate("flow.node.name.null")]
        [LenValidate("flow.node.name.len", 1, 50)]
        public string NodeName
        {
            get;
            set;
        }
        /// <summary>
        /// 坐标系
        /// </summary>
        [NullValidate("flow.node.coordinate.null")]
        public ImgPoint Coordinate
        {
            get;
            set;
        }
        [EnumValidate("flow.node.type.error", typeof(FlowNodeType), 0)]
        public FlowNodeType NodeType
        {
            get;
            set;
        }
        public long? FormId
        {
            get;
            set;
        }
    }
}
